package com.pzhyd.sc.biz.inter;

import java.util.List;

import com.pzhyd.sc.entity.Roleinfo;
import com.pzhyd.sc.util.Page;

/**
 * 角色逻辑层，对数据库中角色信息的操作
 * @author Gao shiwei
 * @version V2012.0.1
 */

public interface IroleBiz {
	
	public void serachAll(Page page);

	public List<Roleinfo> serachAll();

	public List<Roleinfo> serachByRname(String rname);
	
	public Roleinfo serachByRid(String rid) ;

	public int createRole(Roleinfo role);

	public int updateRole(Roleinfo role);
	
	public int deleteRoleByRids(int []rid);
	
	public List<Roleinfo> searchBypid(String pid);
	
}
